<template>
    <p>这是About</p>
    <button @click="pushTz">跳转去home</button>
    <button @click="pushParams">测试</button>
</template>

<script>
export default {
    methods:{
            pushTz(){
                this.$router.push('/home')
            },
            pushParams(){
                this.$router.push({name:'home',state:{params:{id:6,name:'重试重试陈述事实'}}})
            }
    },

    mounted(){
        // console.log('about的路由配置是',this.$route)
        //接收home传来的参数
        console.log(history);
    }
}
</script>

<style>

</style>